package Buffer;

import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.util.LinkedList;

public class PrintStreamDemo {
    public static void main(String[] args) throws FileNotFoundException {
        PrintStream out = System.out;

        out.println();
        // 创建字节打印流对象
        PrintStream ps = new PrintStream("funCode\\bos.txt");
        ps.println(100);

        ps.close();

        /*
        LinkedList<String> linkedList = new LinkedList<>();
        linkedList.add("heii");
        linkedList.add("heii");
        linkedList.add("heii");
        System.out.println(linkedList.get(1));
        */
    }
}
